﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProgNetComponents;

namespace System
{
    public static class  OtherExt
    {
        public static bool GetBool(this ThreeStateBoolean boolean, bool defaultValue)
        {
            if (boolean == ThreeStateBoolean.True)
                return true;
            if (boolean == ThreeStateBoolean.False)
                return false;
            return defaultValue;
        }
    }
}
